home *** CD-ROM | disk | FTP | other *** search
/ Champak 109 / Vol 109.iso / games / mings_dr.swf / scripts / DefineButton2_52 / BUTTONCONDACTION on(release).as < prev   
Text File  |  2008-11-12  |  487b  |  28 lines

  1. on(release){
  2.    this.stopDrag();
  3.    cont = this.dist();
  4.    if(cont)
  5.    {
  6.       this._x = tx;
  7.       this._y = ty;
  8.       this.swapDepths(15);
  9.       if(_root.up != this._name)
  10.       {
  11.          if(_root.up != "")
  12.          {
  13.             _root[_root.up].out();
  14.             _root[_root.up].z_sort();
  15.          }
  16.       }
  17.       _root.up = this._name;
  18.    }
  19.    else
  20.    {
  21.       if(_root.up == this._name)
  22.       {
  23.          _root.up = "";
  24.       }
  25.       this.z_sort();
  26.    }
  27. }
  28.